package fr.chrysalis.ui.components.events
{
	import flash.events.Event;
	
	import fr.chrysalis.ui.components.core.Form;
	
	public class FormEvent extends Event
	{
		
		/**
		 * Dispatch quand le formulaire est submit
		 */
		public static const SUBMIT:String="submit";
		
		/**
		 * Contient le formulaire
		 */
		public var form:Form;
		
		public function FormEvent(type:String, form:Form){
			this.form = form;
			super(type, false, false);
		}
		
		public override function clone():Event{
			return new FormEvent(this.type, this.form);
		}
		
		
	}
}